package com.toilet.easyvideofx.view;

import javafx.beans.property.*;

public class DownloadViewModel {

    /**
     * 当前下载进度
     */
    private final DoubleProperty doubleProperty = new SimpleDoubleProperty();
    /**
     * 当前文件名称
     */
    private final StringProperty downloadName = new SimpleStringProperty();
    /**
     * 下载的id
     */
    private final LongProperty fileId = new SimpleLongProperty();


    public double getDoubleProperty() {
        return doubleProperty.get();
    }

    public void setDoubleProperty(double doubleProperty) {
        this.doubleProperty.set(doubleProperty);
    }

    public long getFileId() {
        return fileId.get();
    }

    public LongProperty fileIdProperty() {
        return fileId;
    }

    public void setFileId(long fileId) {
        this.fileId.set(fileId);
    }

    public DoubleProperty doublePropertyProperty() {
        return doubleProperty;
    }

    public void setDoubleProperty(int doubleProperty) {
        this.doubleProperty.set(doubleProperty);
    }

    public String getDownloadName() {
        return downloadName.get();
    }

    public StringProperty downloadNameProperty() {
        return downloadName;
    }

    public void setDownloadName(String downloadName) {
        this.downloadName.set(downloadName);
    }
}
